package com.graph.base;

public class Edge {
	private VertexInterface endVertex;// 终点
	private Integer weight;// 权值
	public void setWeight(Integer weight) {
		this.weight = weight;
	}
	private Integer betweenness;

	public Integer getBetweenness() {
		return betweenness;
	}
	public Integer setBetweenness(Integer i) {
		return i=betweenness;
	}

	// Vertex 类本身就代表顶点对象,因此在这里只需提供 endVertex，就可以表示一条边了
	protected Edge(VertexInterface endVertex, Integer edgeWeight) {
		this.endVertex = endVertex;
		weight = edgeWeight;
	}

	protected Integer getWeight() {
		return weight;
	}
	public VertexInterface getEndVertex() {
		return endVertex;
	}
	public void setEndVertex(VertexInterface endVertex) {
		this.endVertex = endVertex;
	}
}
